package zzg.study.protocol.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import zzg.study.protocol.Packet;

import static zzg.study.protocol.command.Command.MESSAGE_RESPONSE;

/**
 * @Classname MessageResponsePacket
 * @Description 服务端发送至客户端的消息对象
 * @Date 2023/11/30 21:33
 * @Author zhuzhenguo
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MessageResponsePacket extends Packet {

    private String fromUserId;

    private String fromUserName;

    private String message;

    @Override
    public Byte getCommand() {
        return MESSAGE_RESPONSE;
    }
}
